const express = require('express');
const morgan = require('morgan');

const userRouter = require( './routes/user' );
const bookRouter = require( './routes/book' );

const port = 18080 ;
const app = express();

app.use(morgan('dev'));
app.use(express.json());
app.use(express.urlencoded({ extended: false }));

app.use( userRouter );
app.use( bookRouter );

app.listen( port );
